﻿{% extends "other/head.html" %}
{% block head %}
        <div class="wrapper wrapper-content animated fadeInRight">

            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox ">
                        <div class="ibox-title">
                            <h5>添加用户</h5>
                            <div class="ibox-tools">
                                <a class="collapse-link">
                                    <i class="fa fa-chevron-up"></i>
                                </a>
                                <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                                    <i class="fa fa-wrench"></i>
                                </a>

                                <a class="close-link">
                                    <i class="fa fa-times"></i>
                                </a>
                            </div>
                        </div>
                        <div class="ibox-content">
                            <form method="post">
                             {% csrf_token %}
                                <div class="form-group  row"><label class="col-sm-2 col-form-label">登录账号</label>

                                    <div class="col-sm-10"><input type="text" class="form-control" name="user_name"></div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">用户名</label>
                                    <div class="col-sm-10"><input type="text" class="form-control" name="user_alias">
                                    </div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">密码</label>

                                    <div class="col-sm-10"><input type="password" class="form-control" name="user_password"></div>
                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">用户角色</label>



                                        <div class="col-lg-4 m-l-n" style="margin-left: 1px">
                                            <select class="form-control"  name="user_status">


                                            <option value="2" selected="selected">普通用户</option>
                                                <option value="1">超级用户</option>

                                        </select></div>

                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">项目</label>



                                        <div class="col-lg-4 m-l-n" style="margin-left: 1px">
                                            <select class="form-control" multiple="multiple" name="user_project">
                                                {%  for i in project_list %}
                                            <option value="{{ i.project_id }}">{{ i.project_alias }}</option>
                                                {% endfor %}
                                        </select></div>

                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">是否允许查看所有文件列表</label>



                                        <div class="col-lg-4 m-l-n" style="margin-left: 1px">
                                            <select class="form-control"  name="user_show">


                                            <option value="0" selected="selected">只查看拥有者为自己的文件</option>
                                                <option value="1" selected="selected">查看归属项目的所有文件</option>
                                                <option value="2">查看所有项目文件</option>

                                        </select></div>

                                </div>
                                <div class="hr-line-dashed"></div>
                                <div class="form-group row"><label class="col-sm-2 col-form-label">删除文件权限</label>



                                        <div class="col-lg-4 m-l-n" style="margin-left: 1px;margin-top: 10px">
                                            <label><input name="user_del_file" type="radio" value="0" />否 </label>
                                            <label><input name="user_del_file" type="radio" value="1" />是 </label>
                                            </div>

                                </div>

                                <div class="hr-line-dashed"></div>
                                <div class="form-group row">
                                    <div class="col-sm-4 col-sm-offset-2">
                                        <button class="btn btn-white btn-sm" type="submit">取消</button>
                                        <button class="btn btn-primary btn-sm" type="submit">保存更改</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="float-right">
                 <strong>2.9.2 inspinia</strong>
            </div>
            <div>
                <strong>Copyright</strong> inspinia 2.9.2 &copy; 2014-2018
            </div>
        </div>

        </div>
        </div>



</body>

</html>
{% endblock %}